package com.zdkj.subway.st.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.zdkj.common.core.exceltools.HeaderToColumn;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;
import java.time.LocalDateTime;

/**
 * @ProjectName: zdkj
 * @Package: com.zdkj.subway.st.entity
 * @ClassName: SwStTicketBorrowReturn
 * @Description:
 * @Author: kangjian
 * @CreateDate: 2020/1/10 16:59
 * @Version: 1.0
 */
@Data
@TableName("sw_tk_ticket_borrow_return")
@ApiModel(value = "车票借用与归还记录表")
@EqualsAndHashCode(callSuper = true)
public class SwStTicketBorrowReturn extends Model<SwStTicketBorrowReturn> {
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "唯一标识")
    private Integer id;

    @ApiModelProperty(value = "是否借用")
    private String isReceive;

    @ApiModelProperty(value = "是否归还")
    private String isReturn;

    @ApiModelProperty(value = "库存日盘点表ID")
    private Integer outputStockid;

    @ApiModelProperty(value = "出库单编号")
    private String outputStockno;

    @ApiModelProperty(value = "出库时间")
    private LocalDateTime outputStockTime;

    @ApiModelProperty(value = "库存日盘点表ID")
    private Integer inputStockid;

    @ApiModelProperty(value = "入库单编号")
    private String inputStockno;

    @ApiModelProperty(value = "车票名称")
    @HeaderToColumn(header = "车票名称",index = 2)
    private String ticketName;

    @ApiModelProperty(value = "票种")
    @HeaderToColumn(header = "票种",index = 2)
    private String ticketType;

    @ApiModelProperty(value = "库存分区")
    private String stockArea;

    @ApiModelProperty(value = "车票次数")
    private Integer ticketTimes;

    @ApiModelProperty(value="车票金额")
    private BigDecimal ticketPrice;

    @ApiModelProperty(value = "车票有效期")
    private String activeTime;

    @ApiModelProperty(value = "车票最晚启动日期")
    private LocalDateTime latestStartTime;

    @ApiModelProperty(value = "票卡卡号")
    private String ticketNo;

    @ApiModelProperty(value = "借用时间")
    private LocalDateTime borrowTime;

    @ApiModelProperty(value = "借用数量")
    private Integer borrowNumber;

    @ApiModelProperty(value = "借用人Code")
    private String borrowPersonCode;

    @ApiModelProperty(value = "借用人Name")
    private String borrowPersonName;

    @ApiModelProperty(value = "借用人单位或部门")
    private String borrowPersonUnit;

    @ApiModelProperty(value = "归还时间")
    private String returnTime;

    @ApiModelProperty(value = "归还数量")
    private Integer returnNumber;

    @ApiModelProperty(value = "剩余归还数量")
    private Integer returnNumberRemain;

    @ApiModelProperty(value = "归还人Code")
    private String returnPersonCode;

    @ApiModelProperty(value = "归还人Name")
    private String returnPersonName;

    @ApiModelProperty(value = "归还人单位或部门")
    private String returnPersonUnit;

    @ApiModelProperty(value = "附件路径")
    private String file;

    @ApiModelProperty(value = "图片")
    private String picture;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建人ID")
    private Integer creatorId;

    @ApiModelProperty(value = "创建人名称")
    private String creatorName;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime create_time;



    @ApiModelProperty(value = "借用时间 yyyy-MM-dd")
    @TableField(exist = false)
    @ExcelIgnore
    private String borrowTimeDTO;

    @ApiModelProperty(value = "归还时间 yyyy-MM-dd")
    @TableField(exist = false)
    @ExcelIgnore
    private String returnTimeDTO;


	@ApiModelProperty(value = "出库人Code")
    private String outputPersonCode;

    @ApiModelProperty(value = "出库人Name")
    private String outputPersonName;

}
